package com.settlement.system.model.entity.common;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * RPA3.0专项费用充值-银行卡信息表
 * @author xiaochuan
 * @since 2021-03-09
 */
@Data
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 14)
public class TblRpaBankCard extends BaseModel implements Serializable {


    /**
     * 银行卡号
     */
    @ColumnWidth(17)
    @ExcelProperty(value = "银行卡号")
    @ApiModelProperty(value = "银行卡号")
    @NotBlank(message = "银行卡号不能为空")
    private String cardNo;

    /**
     * 账户名称
     */
    @ColumnWidth(25)
    @ExcelProperty(value = "账户名称")
    @ApiModelProperty(value = "账户名称")
    @NotBlank(message = "账户名称不能为空")
    private String accountName;

    /**
     * 银行卡密码自变量
     */
    @ColumnWidth(22)
    @ExcelProperty(value = "银行卡密码自变量")
    @ApiModelProperty(value = "银行卡密码自变量")
    @NotBlank(message = "银行卡密码自变量不能为空")
    private String password;

    /**
     * 银行名称
     */
    @ColumnWidth(13)
    @ExcelProperty(value = "银行名称")
    @ApiModelProperty(value = "银行名称")
    @NotBlank(message = "银行名称不能为空")
    private String bankName;

    /**
     * 手机号
     */
    @ColumnWidth(13)
    @ExcelProperty(value = "手机号")
    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    /**
     * 序号
     */
    @ColumnWidth(25)
    @ExcelProperty(value = "优先级（正整数）")
    @ApiModelProperty(value = "优先级")
    @NotBlank(message = "优先级不能为空")
    @Length(max = 4,message = "优先级不能大于9999")
    @Pattern(regexp="^[1-9][0-9]*$",message="优先级为正整数")
    private String sort;



}
